//package com.plian.system.controller.transfer;
//
//import com.baomidou.mybatisplus.core.toolkit.Wrappers;
//import com.plian.system.config.AppKeySign;
//import com.plian.system.dto.transfer.DataPlatSign;
//import com.plian.system.entity.fr.bank.BankKey;
//import com.plian.system.model.R;
//import com.plian.system.model.token.PassToken;
//import com.plian.system.service.fr.bank.IBankKeyService;
//import com.plian.system.service.transfer.IStaffFilesTransferService;
//import com.plian.system.vo.hr.dept.DeptVO;
//import com.plian.system.vo.hr.staff.DirectorVO;
//import com.plian.system.vo.hr.staff.StaffFilesVO;
//import com.plian.system.vo.hr.staff.SupervisorVO;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//@RestController
//@RequestMapping(value = "api/stafffilestransfer")
//@Api(value = "员工档案数据对接", tags = "员工档案数据对接")
//public class StaffFilesTransferController {
//
//    @Autowired
//    private IStaffFilesTransferService staffFilesTransferService;
//
//    @Autowired
//    private IBankKeyService bankKeyService;
//
//
//    @PostMapping(value = "/submit-list")
//    @ApiOperation(value = "员工档案数据 批量", notes = "传入staffFilesVOS")
//    public R submitList(@RequestBody List<StaffFilesVO> staffFilesVOS){
//        return staffFilesTransferService.submitList(staffFilesVOS);
//    }
//
//    @PostMapping(value = "/submit-director-list")
//    @ApiOperation(value = "董事会批量更新数据 批量", notes = "传入directorVOS")
//    public R submitDirectorList(@RequestBody List<DirectorVO> directorVOS){
//        return staffFilesTransferService.submitDirectorList(directorVOS);
//    }
//
//    @PostMapping(value = "/submit-supervisor-list")
//    @ApiOperation(value = "监事会批量更新数据 批量", notes = "传入supervisorVOS")
//    public R submitSupervisorList(@RequestBody List<SupervisorVO> supervisorVOS){
//        return staffFilesTransferService.submitSupervisorList(supervisorVOS);
//    }
//
//    @PostMapping(value = "/submit-dept-list")
//    @ApiOperation(value = "部门批量更新数据 批量", notes = "传入deptVOS")
//    public R submitDeptList(@RequestBody List<DeptVO> deptVOS){
//        return staffFilesTransferService.submitDeptList(deptVOS);
//    }
//
//    @PostMapping(value = "/staff-files")
//    @PassToken
//    @AppKeySign
//    public R<List<StaffFilesVO>> staffFiles(@RequestBody DataPlatSign dataPlatSign){
//        String appId = dataPlatSign.getAppId();
//        BankKey bankKey = bankKeyService.getOne(Wrappers.<BankKey>lambdaQuery().eq(BankKey::getAppId, appId));
//        String topGroupId = bankKey.getTopGroupId();
//        return R.data(staffFilesTransferService.staffFilesByOrgId(topGroupId));
//    }
//}
